package com.iocup.keybastion.common;

import com.pine.sunflower.core.model.CommonErrorCode;
import com.pine.sunflower.core.model.ErrorCode;

/**
 * @author xyjxust
 * @create 2023/8/16
 **/
public enum SystemErrorCode  implements ErrorCode {

    ROUTE_NOT_MATCH("K0","路由不匹配");


    private final String code;

    private final String describe;

    SystemErrorCode(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getDescription() {
        return this.describe;
    }

    @Override
    public String toString() {
        return String.format("Code:[%s], Describe:[%s]", this.code,
                this.describe);
    }
}
